package com.mall.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mall.bean.Goods;
import com.mall.dao.AllGoodsDao;
import com.mall.service.IAllGoodsService;

@Service("allGoodsService")
public class AllGoodsServiceImpl implements IAllGoodsService {

	@Resource
	private AllGoodsDao allGoodsDao;


	//查找各个种类的所有
	@Override
	public List<Goods> findAllClassify(Goods goods) {
		// TODO Auto-generated method stub
		return allGoodsDao.findAllClassify(goods);
	}

	@Override
	public List<Goods> findAllGoods(Goods goods) {
		// TODO Auto-generated method stub
		return allGoodsDao.findAllGoods(goods);
	}


}
